#ifndef HPLC_ZKYS_PUMPPARSESYSTEMPACKET_H
#define HPLC_ZKYS_PUMPPARSESYSTEMPACKET_H

#include <QObject>
#include "modulehplcpumpdefine.h"
#include "common/hplcqinfineparsecommonsystempacket.h"

namespace hplc
{
namespace zkys
{

class HplcZkysPumpProtocolData;
class HplcZkysPumpParseSystemPacket : public QObject
{
    Q_OBJECT

public:
    HplcZkysPumpParseSystemPacket(HplcZkysPumpProtocolData &data, hplc::PumpParam &param, QObject *parent = nullptr);

    void parseSet(quint8 pfc, char *data, int len);
    void parseGet(quint8 pfc, char *data, int len);

signals:
    void parseCompleted(int id, const QVariant &data);

protected:
    HplcZkysPumpProtocolData 		*m_d = nullptr;
    hplc::PumpParam			*m_param = nullptr;
};

} // zkys
} // hplc

#endif // HPLC_ZKYS_PUMPPARSESYSTEMPACKET_H
